package com.xiaoshuidi.cloud.module.member.mapper.index;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoshuidi.cloud.module.member.pojo.index.AppIndexConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @description app首页配置Mapper层
 * @author Leo.Li
 * @date 2023-05-19 17:20:47
 * @version generator
 */
@Mapper
public interface AppIndexPageConfigMapper extends BaseMapper<AppIndexConfigEntity> {
    List<AppIndexConfigEntity> selectAppIndexConfigList();

    void disableAppIndexPageConfigs(Long id);

    @Select("select * from member_app_index_config where deleted = 0 and index_id = #{index}")
    AppIndexConfigEntity getConfigByIndex(@Param("index") Integer index);
}
